package com.mybed.crm.pojo.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 合同
 * </p>
 *
 * @author kt
 * @since 2024-10-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_contract")
@ApiModel(value="Contract对象", description="合同")
public class Contract implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "合同id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "合同编号")
    private String contractNo;

    @ApiModelProperty(value = "客户姓名")
    private String name;

    @ApiModelProperty(value = "意向学科")
    private String subject;

    @ApiModelProperty(value = "活动id")
    private Long activityId;

    @ApiModelProperty(value = "活动名称")
    private String activityName;

    @ApiModelProperty(value = "课程id")
    private Long courseId;

    @ApiModelProperty(value = "课程名称")
    private String courseName;
    @ApiModelProperty(value = "渠道")
    private String channel;

    @ApiModelProperty(value = "状态(待审核1，已通过2，已驳回3 全部完成4)")
    private String status;

    @ApiModelProperty(value = "创建人")
    private String createBy;
    @ApiModelProperty(value = "关联部门id")
    private Long deptId;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "文件名称")
    private String fileName;

    @ApiModelProperty(value = "订单价格")
    private Float contractOrder;

    @ApiModelProperty(value = "折扣类型")
    private String discountType;

    @ApiModelProperty(value = "课程价格")
    private Float coursePrice;
    @ApiModelProperty(value = "关联商机id")
    private Long businessId;


}
